package com.azier.kapacitor.script.node.nodebind;

import com.azier.kapacitor.script.node.Node;
import com.azier.kapacitor.script.node.UnionNode;

/**
* 1 * @Author: luoj
* 2 * @Date: 2019/11/8 11:27
* 3
*/

public interface UnionNodeBind extends Node {

    default UnionNode union(Node... others){
        UnionNode nextNode = new UnionNode(others);
        this.setNextNode(nextNode);
        nextNode.zetHeadNode(this.getHeadNode());
        return nextNode;
    }
}